home *** CD-ROM | disk | FTP | other *** search
- isinf:
-
- Syntax: isinf ( A )
-
- Description:
-
- isinf returns TRUE (1) if A is Infinity (according to
- IEEE-754). If A is a vector or a matrix the test is performed
- element-by-element, and a matrix the same size as A is
- returned.
-
- Infs can usually be created by attempting to divide by zero.
-
- Example:
-
- > a = [1, 2, 3; 4, 5, inf(); 7, 8, 9]
- a =
- 1 2 3
- 4 5 inf
- 7 8 9
- > isinf (a)
- 0 0 0
- 0 0 1
- 0 0 0
-
-
- See Also: isnan, finite
-